package com.chinairi.mall.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chinairi.common.annotation.CiccLabel;
import com.chinairi.common.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 订单商品关系表
 * </p>
 *
 * @author gsl
 * @since 2020-10-13
 */
@TableName("ORDER_GOODS")
public class OrderGoods extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 订单商品关系主键
     */
    @TableId("OG_ID")
    private String ogId;

    /**
     * 订单编号(关联订单表主键)
     */
    @TableField("ORDER_ID")
    private String orderId;

    /**
     * 商品编号
     */
    @TableField("GOODS_DBID")
    private String goodsDbid;

    /**
     * 商品名称
     */
    @TableField("GOODS_NAME")
    private String goodsName;

    /**
     * 购买数量
     */
    @TableField("OG_GOODS_NUMBER")
    private Float ogGoodsNumber;

    /**
     * 计量单位
     */
    @TableField("OG_GOODS_UNIT")
    private String ogGoodsUnit;

    /**
     * 商品单价
     */
    @TableField("OG_GOODS_PRICE")
    private BigDecimal ogGoodsPrice;

    /**
     * 商品金额
     */
    @TableField("OG_GOODS_MONEY")
    private BigDecimal ogGoodsMoney;

    /**
     * 入库数
     */
    @TableField("OG_STORAGE_NUMBER")
    private Float ogStorageNumber;

    /**
     * 出库数
     */
    @TableField("OG_DELIVERY_NUMBER")
    private Float ogDeliveryNumber;

    /**
     * 使用数
     */
    @TableField("OG_USED_NUMBER")
    private Float ogUsedNumber;

    /**
     * 余量
     */
    @TableField("OG_REMAINDER")
    private Float ogRemainder;

    /**
     * 入库结算（万元）
     */
    @TableField("OG_STORAGE_MONEY")
    private BigDecimal ogStorageMoney;

    /**
     * 出库结算（万元）
     */
    @TableField("OG_DELIVERY_MONEY")
    private BigDecimal ogDeliveryMoney;

    /**
     * 应收金额（万元）
     */
    @TableField("OG_COLLECT_MONEY")
    private BigDecimal ogCollectMoney;

    /**
     * 服务金额（万元）
     */
    @TableField("OG_SERVICE_MONEY")
    private BigDecimal ogServiceMoney;

    /**
     * 交货期
     */
    @TableField("OG_DELIVERY_DATA")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date ogDeliveryData;

    /**
     * 结算点(入库结算或到货结算)
     */
    @TableField("OG_SETTLE_POINT")
    private String ogSettlePoint;


    /**
     * 商品申请售后内容
     */
    @TableField("OG_AFTER_SALE_CONCA")
    private String ogAfterSaleConca;

    /**
     * 评价星级
     */
    @TableField("OG_EVA_START")
    private String ogEvaStart;

    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField("UPDATE_USER")
    private String updateUser;

    /**
     * 修改时间
     */
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 机构代码
     */
    @TableField("ORG_CODE")
    private String orgCode;

    public String getOgId() {
        return ogId;
    }

    public void setOgId(String ogId) {
        this.ogId = ogId;
    }
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public String getGoodsDbid() {
        return goodsDbid;
    }

    public void setGoodsDbid(String goodsDbid) {
        this.goodsDbid = goodsDbid;
    }
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public Float getOgGoodsNumber() {
        return ogGoodsNumber;
    }

    public void setOgGoodsNumber(Float ogGoodsNumber) {
        this.ogGoodsNumber = ogGoodsNumber;
    }
    public String getOgGoodsUnit() {
        return ogGoodsUnit;
    }

    public void setOgGoodsUnit(String ogGoodsUnit) {
        this.ogGoodsUnit = ogGoodsUnit;
    }
    public BigDecimal getOgGoodsPrice() {
        return ogGoodsPrice;
    }

    public void setOgGoodsPrice(BigDecimal ogGoodsPrice) {
        this.ogGoodsPrice = ogGoodsPrice;
    }
    public BigDecimal getOgGoodsMoney() {
        return ogGoodsMoney;
    }

    public void setOgGoodsMoney(BigDecimal ogGoodsMoney) {
        this.ogGoodsMoney = ogGoodsMoney;
    }
    public Float getOgStorageNumber() {
        return ogStorageNumber;
    }

    public void setOgStorageNumber(Float ogStorageNumber) {
        this.ogStorageNumber = ogStorageNumber;
    }
    public Float getOgDeliveryNumber() {
        return ogDeliveryNumber;
    }

    public void setOgDeliveryNumber(Float ogDeliveryNumber) {
        this.ogDeliveryNumber = ogDeliveryNumber;
    }
    public Float getOgUsedNumber() {
        return ogUsedNumber;
    }

    public void setOgUsedNumber(Float ogUsedNumber) {
        this.ogUsedNumber = ogUsedNumber;
    }
    public Float getOgRemainder() {
        return ogRemainder;
    }

    public void setOgRemainder(Float ogRemainder) {
        this.ogRemainder = ogRemainder;
    }
    public BigDecimal getOgStorageMoney() {
        return ogStorageMoney;
    }

    public void setOgStorageMoney(BigDecimal ogStorageMoney) {
        this.ogStorageMoney = ogStorageMoney;
    }
    public BigDecimal getOgDeliveryMoney() {
        return ogDeliveryMoney;
    }

    public void setOgDeliveryMoney(BigDecimal ogDeliveryMoney) {
        this.ogDeliveryMoney = ogDeliveryMoney;
    }
    public BigDecimal getOgCollectMoney() {
        return ogCollectMoney;
    }

    public void setOgCollectMoney(BigDecimal ogCollectMoney) {
        this.ogCollectMoney = ogCollectMoney;
    }
    public BigDecimal getOgServiceMoney() {
        return ogServiceMoney;
    }

    public void setOgServiceMoney(BigDecimal ogServiceMoney) {
        this.ogServiceMoney = ogServiceMoney;
    }
    public Date getOgDeliveryData() {
        return ogDeliveryData;
    }

    public void setOgDeliveryData(Date ogDeliveryData) {
        this.ogDeliveryData = ogDeliveryData;
    }
    public String getOgSettlePoint() {
        return ogSettlePoint;
    }

    public void setOgSettlePoint(String ogSettlePoint) {
        this.ogSettlePoint = ogSettlePoint;
    }
    public String getOgAfterSaleConca() {
        return ogAfterSaleConca;
    }

    public void setOgAfterSaleConca(String ogAfterSaleConca) {
        this.ogAfterSaleConca = ogAfterSaleConca;
    }
    public String getOgEvaStart() {
        return ogEvaStart;
    }

    public void setOgEvaStart(String ogEvaStart) {
        this.ogEvaStart = ogEvaStart;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Override
    public String toString() {
        return "OrderGoods{" +
            "ogId=" + ogId +
            ", orderId=" + orderId +
            ", goodsDbid=" + goodsDbid +
            ", goodsName=" + goodsName +
            ", ogGoodsNumber=" + ogGoodsNumber +
            ", ogGoodsUnit=" + ogGoodsUnit +
            ", ogGoodsPrice=" + ogGoodsPrice +
            ", ogGoodsMoney=" + ogGoodsMoney +
            ", ogStorageNumber=" + ogStorageNumber +
            ", ogDeliveryNumber=" + ogDeliveryNumber +
            ", ogUsedNumber=" + ogUsedNumber +
            ", ogRemainder=" + ogRemainder +
            ", ogStorageMoney=" + ogStorageMoney +
            ", ogDeliveryMoney=" + ogDeliveryMoney +
            ", ogCollectMoney=" + ogCollectMoney +
            ", ogServiceMoney=" + ogServiceMoney +
            ", ogDeliveryData=" + ogDeliveryData +
            ", ogSettlePoint=" + ogSettlePoint +
            ", ogAfterSaleConca=" + ogAfterSaleConca +
            ", ogEvaStart=" + ogEvaStart +
            ", createUser=" + createUser +
            ", createTime=" + createTime +
            ", updateUser=" + updateUser +
            ", updateTime=" + updateTime +
            ", orgCode=" + orgCode +
        "}";
    }
}
